var bypassDomains = ['gs-loc.apple.com', 'dptr.areyouahuman.com', 'web.p.qq.com', 'raw.githubusercontent.com', 's4.histats.com', 'static.exoclick.com', 'adadvisor.net', 't.dtscdn.com', 'cnzz.mmstat.com', 'z4.cnzz.com', 's10.histats.com', 'e.dtscout.com', 'spot-01.atas.io', 'pcookie.cnzz.com', 'qhm2.cnzz.com', 'ads2.contentabc.com', 'aa.agkn.com'];
		function FindProxyForURL(url, host) {
			if (isPlainHostName(host) // including localhost
			|| shExpMatch(host, "*.local")) {
				return "DIRECT";
			}
			// only checks plain IP addresses to avoid leaking domain name
			if (/^[0-9.]+$/.test(host)) {
				if (isInNet(host, "10.0.0.0", "255.0.0.0") ||
				isInNet(host, "172.16.0.0",  "255.240.0.0") ||
				isInNet(host, "192.168.0.0",  "255.255.0.0") ||
				isInNet(host, "127.0.0.0", "255.255.255.0")) {
					return "DIRECT";
				}
			}
			// Lantern desktop version proxies only http(s) and ws(s)
			if (url.substring(0, 4) != 'http' && (url.substring(0, 2) != 'ws')) {
				return "DIRECT";
			}
			for (var d in bypassDomains) {
				if (host == bypassDomains[d]) {
					return "DIRECT";
				}
			}
			return "PROXY 127.0.0.1:55830; DIRECT";
		}